package com.aikon.wht.cglib;

import java.lang.reflect.Method;

import net.sf.cglib.proxy.MethodInterceptor;
import net.sf.cglib.proxy.MethodProxy;

public class MethodEnhancer implements MethodInterceptor {

	public Object intercept(Object obj, Method method, Object[] args, MethodProxy proxy) throws Throwable {

		if (method.getName() == "pp") {
			args[0] = args[0] + "asdf";
		}
		
		
		return proxy.invokeSuper(obj, args);
	}

}
